package com.keguoyu.easymvp.ioc.internal.util

import com.google.gson.Gson
import java.util.jar.JarEntry

val GSON = Gson()

fun String.toClassPath() = "${replace(".", "/")}.class"
fun String.replaceDivAndDollarWithDot() = replaceDivWithDot().replace("$", ".")
fun String.replaceDivWithDot() = this.replace("/", ".").replace(".class", "")
fun JarEntry.toClassName() = name.replaceDivWithDot()